package cn.ipanel.bigdata.boot.source.genre

import cn.ipanel.bigdata.boot.source.{DataSource, Mapper, Table}
import org.apache.spark.sql.SQLContext

/**
 * Author: lzz
 * Date: 2021/11/16 16:15
 */
abstract class HBase(dbName: String, tbName: String) extends Mapper with Table {

  private[this] final lazy val SC: SQLContext = SQLContext.getOrCreate(spark.sparkContext)

  override def getSourceGenre: DataSource.Genre = DataSource.GENRE_HBASE
  override def getSourceModel: DataSource.Model = DataSource.MODEL_WRITE
  override def getDBName: String = dbName
  override def getTBName: String = tbName
}